#include<bits/stdc++.h>
using namespace std;
long long sum=0,xiabiao; 
string s;
int main()
{
    cin >> s;
    while(s.find("chuanzhi",xiabiao)!=string::npos)
    {
        xiabiao=s.find("chuanzhi",xiabiao)+1;
        sum++;
    }
    cout << sum << endl;
    return 0;
}
